600 |
How can I display the currency only for not empty cells
Grid1->Columns->Add(L"Number"); Grid1->Columns->Add(L"Currency")->ComputedField = L"len(%0) ? currency(dbl(%0)) : ''"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("1.23")); var_Items->AddItem(TVariant("2.34")); var_Items->AddItem(TVariant("0")); var_Items->set_ItemBackColor(var_Items->AddItem(TNoParam()),RGB(255,128,128)); var_Items->AddItem(TVariant("10000.99")); |
599 |
Is there a function to display the number of days between two date including the number of hours
Grid1->Columns->Add(L"Start")->Width = 32; Grid1->Columns->Add(L"End"); Grid1->Columns->Add(L"Duration")->ComputedField = TVariant(String("((1:=int(0:= (date(%1)-date(%0)))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)") + "*24))) != 0 ? =:1 + ' hour(s) ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant(TDateTime(2001,1,11).operator double())); var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(TDateTime(2001,1,14).operator double())); h = var_Items->AddItem(TVariant(TDateTime(2002,2,22,12,00,00,0).operator double())); var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(TDateTime(2002,3,14,13,00,00,0).operator double())); h = var_Items->AddItem(TVariant(TDateTime(2003,3,13).operator double())); var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(TDateTime(2003,4,11,11,00,00,0).operator double())); |
598 |
Is there a function to display the number of days between two date including the number of hours
Grid1->Columns->Add(L"Start"); Grid1->Columns->Add(L"End"); Grid1->Columns->Add(L"Duration")->ComputedField = L"\"D \" + int(date(%1)-date(%0)) + \" H \" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%0))))"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant(TDateTime(2001,1,11).operator double())); var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(TDateTime(2001,1,14,23,00,00,0).operator double())); h = var_Items->AddItem(TVariant(TDateTime(2002,2,22,12,00,00,0).operator double())); var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(TDateTime(2002,3,14,13,00,00,0).operator double())); h = var_Items->AddItem(TVariant(TDateTime(2003,3,13).operator double())); var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(TDateTime(2003,4,11,11,00,00,0).operator double())); |
597 |
How can I display the number of days between two dates
Grid1->Columns->Add(L"Start"); Grid1->Columns->Add(L"End"); Grid1->Columns->Add(L"Duration")->ComputedField = L"(date(%1)-date(%0)) + ' days'"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant(TDateTime(2001,1,11).operator double())); var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(TDateTime(2001,1,14).operator double())); h = var_Items->AddItem(TVariant(TDateTime(2002,2,22).operator double())); var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(TDateTime(2002,3,14).operator double())); h = var_Items->AddItem(TVariant(TDateTime(2003,3,13).operator double())); var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(TDateTime(2003,4,11).operator double())); |
596 |
How can I get second part of the date
Grid1->Columns->Add(L"Date"); Grid1->Columns->Add(L"Second")->ComputedField = L"sec(date(%0))"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,11,10,10,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,22,11,01,22,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,13,12,23,01,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,14,13,11,59,0).operator double())); |
595 |
How can I get minute part of the date
Grid1->Columns->Add(L"Date"); Grid1->Columns->Add(L"Minute")->ComputedField = L"min(date(%0))"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,11,10,10,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,22,11,01,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,13,12,23,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,14,13,11,00,0).operator double())); |
594 |
How can I check the hour part only so I know it was afternoon
Grid1->ConditionalFormats->Add(L"hour(%0)>=12",TNoParam())->Bold = true; Grid1->Columns->Add(L"Date"); Grid1->Columns->Add(L"Hour")->ComputedField = L"hour(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,11,10,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,22,11,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,13,12,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,14,13,00,00,0).operator double())); |
593 |
What about a function to get the day in the week, or days since Sunday
Grid1->Columns->Add(L"Date"); Grid1->Columns->Add(L"WeekDay")->ComputedField = L"weekday(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,11,10,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,22,11,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,13,12,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,14,13,00,00,0).operator double())); |
592 |
Is there any function to get the day of the year or number of days since January 1st
Grid1->Columns->Add(L"Date"); Grid1->Columns->Add(L"Day since January 1st")->ComputedField = L"yearday(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,11,10,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,22,11,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,13,12,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,14,13,00,00,0).operator double())); |
591 |
How can I display only the day of the date
Grid1->Columns->Add(L"Date"); Grid1->Columns->Add(L"Day")->ComputedField = L"day(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,11,10,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,22,11,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,13,12,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,14,13,00,00,0).operator double())); |
590 |
How can I display only the month of the date
Grid1->Columns->Add(L"Date"); Grid1->Columns->Add(L"Month")->ComputedField = L"month(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,2,11,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,3,12,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,4,13,00,00,0).operator double())); |
589 |
How can I get only the year part from a date expression
Grid1->Columns->Add(L"Date"); Grid1->Columns->Add(L"Year")->ComputedField = L"year(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,2,11,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,3,12,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,4,13,00,00,0).operator double())); |
588 |
Can I convert the expression to date
Grid1->Columns->Add(L"Number"); Grid1->Columns->Add(L"Date")->ComputedField = L"date(dbl(%0))"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("-1.98")); var_Items->AddItem(TVariant("30000.99")); var_Items->AddItem(TVariant("3561.23")); var_Items->AddItem(TVariant("1232.34")); |
587 |
Can I convert the expression to a number, double or float
Grid1->Columns->Add(L"Number"); Grid1->Columns->Add(L"Number + 2")->ComputedField = L"dbl(%0)+2"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("-1.98")); var_Items->AddItem(TVariant("0.99")); var_Items->AddItem(TVariant("1.23")); var_Items->AddItem(TVariant("2.34")); |
586 |
How can I display dates in long format
Grid1->Columns->Add(L"Date"); Grid1->Columns->Add(L"LongFormat")->ComputedField = L"longdate(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,2,11,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,3,12,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,4,13,00,00,0).operator double())); |
585 |
How can I display dates in short format
Grid1->Columns->Add(L"Date"); Grid1->Columns->Add(L"ShortFormat")->ComputedField = L"shortdate(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,2,11,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,3,12,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,4,13,00,00,0).operator double())); |
584 |
How can I display the time only of a date expression
Grid1->Columns->Add(L"Date"); Grid1->Columns->Add(L"Time")->ComputedField = L"'time is:' + time(date(%0))"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,2,11,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,3,12,00,00,0).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,4,13,00,00,0).operator double())); |
583 |
Is there any function to display currencies, or money formatted as in the control panel
Grid1->Columns->Add(L"Number"); Grid1->Columns->Add(L"Currency")->ComputedField = L"currency(dbl(%0))"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("1.23")); var_Items->AddItem(TVariant("2.34")); var_Items->AddItem(TVariant("10000.99")); |
582 |
How can I convert the expression to a string so I can look into the date string expression for month's name
Grid1->Columns->Add(L"Number"); Grid1->Columns->Add(L"Str")->ComputedField = L"str(%0) + ' AA'"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("-1.98")); var_Items->AddItem(TVariant("0.99")); var_Items->AddItem(TVariant("1.23")); var_Items->AddItem(TVariant("2.34")); |
581 |
Can I display the absolute value or positive part of the number
Grid1->Columns->Add(L"Number"); Grid1->Columns->Add(L"Abs")->ComputedField = L"abs(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("-1.98")); var_Items->AddItem(TVariant("0.99")); var_Items->AddItem(TVariant("1.23")); var_Items->AddItem(TVariant("2.34")); |
580 |
Is there any function to get largest number with no fraction part that is not greater than the value
Grid1->Columns->Add(L"Number"); Grid1->Columns->Add(L"Floor")->ComputedField = L"floor(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("-1.98")); var_Items->AddItem(TVariant("0.99")); var_Items->AddItem(TVariant("1.23")); var_Items->AddItem(TVariant("2.34")); |
579 |
Is there any function to round the values base on the .5 value
Grid1->Columns->Add(L"Number"); Grid1->Columns->Add(L"Round")->ComputedField = L"round(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("-1.98")); var_Items->AddItem(TVariant("0.99")); var_Items->AddItem(TVariant("1.23")); var_Items->AddItem(TVariant("2.34")); |
578 |
How can I get or display the integer part of the cell
Grid1->Columns->Add(L"Number"); Grid1->Columns->Add(L"Int")->ComputedField = L"int(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("-1.98")); var_Items->AddItem(TVariant("0.99")); var_Items->AddItem(TVariant("1.23")); var_Items->AddItem(TVariant("2.34")); |
577 |
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
Grid1->Columns->Add(L"")->FormatColumn = L"proper(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("root")); var_Items->InsertItem(h,TNoParam(),TVariant("child child")); var_Items->InsertItem(h,TNoParam(),TVariant("child child")); var_Items->InsertItem(h,TNoParam(),TVariant("child child")); var_Items->set_ExpandItem(h,true); |
576 |
Is there any option to display cells in uppercase
Grid1->Columns->Add(L"")->FormatColumn = L"upper(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 1")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")); var_Items->InsertItem(h,TNoParam(),TVariant("Chld 3")); var_Items->set_ExpandItem(h,true); |
575 |
Is there any option to display cells in lowercase
Grid1->Columns->Add(L"")->FormatColumn = L"lower(%0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 1")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")); var_Items->InsertItem(h,TNoParam(),TVariant("Chld 3")); var_Items->set_ExpandItem(h,true); |
574 |
How can I display the column using currency format and enlarge the font for certain values
Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Currency"); var_Column->set_Def(Exgridlib_tlb::DefColumnEnum::exCellValueFormat,TVariant(1)); var_Column->FormatColumn = L"len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("1.23")); var_Items->AddItem(TVariant("2.34")); var_Items->AddItem(TVariant("9.94")); var_Items->AddItem(TVariant("11.94")); var_Items->AddItem(TVariant("1000")); |
573 |
How can I highlight only parts of the cells
Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L""); var_Column->set_Def(Exgridlib_tlb::DefColumnEnum::exCellValueFormat,TVariant(1)); var_Column->FormatColumn = L"value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 1")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 3")); var_Items->set_ExpandItem(h,true); |
572 |
How can I get the number of occurrences of a specified string in the cell
Grid1->Columns->Add(L""); Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"occurrences"); var_Column->ComputedField = L"lower(%0) count 'o'"; var_Column->FormatColumn = L"'contains ' + value + ' of \\'o\\' chars'"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 1 oooof the root")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 3")); var_Items->set_ExpandItem(h,true); |
571 |
How can I display dates in my format
Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Date"); var_Column->set_Def(Exgridlib_tlb::DefColumnEnum::exCellValueFormat,TVariant(1)); var_Column->FormatColumn = L"'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0) +')'"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,21).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,22).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,13).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,24).operator double())); |
570 |
How can I display dates in short format
Grid1->Columns->Add(L"Date")->FormatColumn = L"shortdate(value)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,1).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,2).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,3).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,4).operator double())); |
569 |
How can I display dates in long format
Grid1->Columns->Add(L"Date")->FormatColumn = L"longdate(value)"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(TDateTime(2001,1,1).operator double())); var_Items->AddItem(TVariant(TDateTime(2002,2,2).operator double())); var_Items->AddItem(TVariant(TDateTime(2003,3,3).operator double())); var_Items->AddItem(TVariant(TDateTime(2004,4,4).operator double())); |
568 |
How can I display only the right part of the cell
Grid1->Columns->Add(L""); Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Right"); var_Column->ComputedField = L"%0 right 2"; var_Column->FormatColumn = L"'\"' + value + '\"'"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 1")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")); var_Items->InsertItem(h,TNoParam(),TVariant("SChild 3")); var_Items->set_ExpandItem(h,true); |
567 |
How can I display only the left part of the cell
Grid1->Columns->Add(L""); Grid1->Columns->Add(L"Left")->ComputedField = L"%0 left 2"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 1")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")); var_Items->InsertItem(h,TNoParam(),TVariant("SChild 3")); var_Items->set_ExpandItem(h,true); |
566 |
How can I display true or false instead 0 and -1
Grid1->Columns->Add(L"Boolean")->FormatColumn = L"value != 0 ? 'true' : 'false'"; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(true)); var_Items->AddItem(TVariant(false)); var_Items->AddItem(TVariant(true)); var_Items->AddItem(TVariant(0)); var_Items->AddItem(TVariant(1)); |
565 |
How can I save data on XML format
|
564 |
How can I load data on XML format
|
563 |
I have an EBN file how can I apply different colors to it, so no need to create a new one
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->SelBackColor = Grid1->BackColor; Grid1->SelForeColor = Grid1->ForeColor; Grid1->HasLines = Exgridlib_tlb::HierarchyLineEnum::exNoLine; Grid1->Columns->Add(L"Default"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root")); long hC = var_Items->InsertItem(h,TNoParam(),TVariant("Default")); var_Items->set_ItemBackColor(hC,0x1000000); var_Items->set_ItemHeight(var_Items->InsertItem(h,TNoParam(),TVariant("")),6); hC = var_Items->InsertItem(h,TNoParam(),TVariant("Light Green")); var_Items->set_ItemBackColor(hC,0x100ff00); var_Items->set_ItemHeight(var_Items->InsertItem(h,TNoParam(),TVariant("")),6); hC = var_Items->InsertItem(h,TNoParam(),TVariant("Dark Green")); var_Items->set_ItemBackColor(hC,0x1007f00); var_Items->set_ItemHeight(var_Items->InsertItem(h,TNoParam(),TVariant("")),6); hC = var_Items->InsertItem(h,TNoParam(),TVariant("Magenta")); var_Items->set_ItemBackColor(hC,0x1ff7fff); var_Items->set_ItemHeight(var_Items->InsertItem(h,TNoParam(),TVariant("")),6); hC = var_Items->InsertItem(h,TNoParam(),TVariant("Yellow")); var_Items->set_ItemBackColor(hC,0x17fffff); var_Items->set_ItemHeight(var_Items->InsertItem(h,TNoParam(),TVariant("")),6); var_Items->set_ExpandItem(h,true); |
562 |
How can I change the background color or the visual appearance using ebn for a particular column
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Exgridlib_tlb::IColumnsPtr var_Columns = Grid1->Columns; var_Columns->Add(L"Column 1"); var_Columns->Add(L"Column 2")->set_Def(Exgridlib_tlb::DefColumnEnum::exHeaderBackColor,TVariant(16777216)); var_Columns->Add(L"Column 3")->set_Def(Exgridlib_tlb::DefColumnEnum::exHeaderBackColor,TVariant(16777471)); var_Columns->Add(L"Column 4"); |
561 |
How can I change the foreground color for a particular column
|
560 |
How can I change the background color for a particular column
|
559 |
Does your control support RightToLeft property for RTL languages or right to left
Grid1->BeginUpdate(); Grid1->ScrollBars = Exgridlib_tlb::ScrollBarsEnum::exDisableBoth; Grid1->LinesAtRoot = Exgridlib_tlb::LinesAtRootEnum::exLinesAtRoot; Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"P1"); var_Column->set_Def(Exgridlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true)); var_Column->PartialCheck = true; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Root")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 1")); var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")); var_Items->set_ExpandItem(h,true); Grid1->RightToLeft = true; Grid1->EndUpdate(); |
558 |
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
|
557 |
Can I display the cell's check box after the text
Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Column"); var_Column->set_Def(Exgridlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true)); var_Column->set_Def(Exgridlib_tlb::DefColumnEnum::exCellDrawPartsOrder,TVariant("caption,check")); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellHasCheckBox(TVariant(var_Items->AddItem(TVariant("Caption 1"))),TVariant(0),true); var_Items->set_CellHasCheckBox(TVariant(var_Items->AddItem(TVariant("Caption 2"))),TVariant(0),true); |
556 |
Can I change the order of the parts in the cell, as checkbox after the text, and so on
Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); Grid1->Columns->Add(L"Column")->set_Def(Exgridlib_tlb::DefColumnEnum::exCellDrawPartsOrder,TVariant("caption,check,icon,icons,picture")); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Text")); var_Items->set_CellImage(TVariant(h),TVariant(0),1); var_Items->set_CellHasCheckBox(TVariant(h),TVariant(0),true); |
555 |
Can I have an image displayed after the text. Can I get that effect without using HTML content
Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); Grid1->Columns->Add(L"Column")->set_Def(Exgridlib_tlb::DefColumnEnum::exCellDrawPartsOrder,TVariant("caption,icon,check,icons,picture")); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Text")); var_Items->set_CellImage(TVariant(h),TVariant(0),1); |
554 |
How can I display the column's header using multiple lines
Grid1->HeaderHeight = 128; Grid1->HeaderSingleLine = false; Grid1->Columns->Add(L"This is just a column that should break the header.")->Width = 32; Grid1->Columns->Add(L"This is just another column that should break the header."); |
553 |
How can include the values in the inner cells in the drop down filter window
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exRowLines; Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->Description[Exgridlib_tlb::DescriptionTypeEnum::exFilterBarBlanks] = L""; Grid1->Description[Exgridlib_tlb::DescriptionTypeEnum::exFilterBarNonBlanks] = L""; Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Single Column"); var_Column->HTMLCaption = L"Single column with <b>inner cells</b>"; var_Column->ToolTip = L"Click the drop down filter button, and the filter list includes the inner cells values too."; var_Column->DisplayFilterButton = true; var_Column->DisplayFilterPattern = false; var_Column->FilterList = Exgridlib_tlb::FilterListEnum::exIncludeInnerCells; Grid1->ShowFocusRect = false; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; TVariant s = TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("S 1.1"))),TVariant(0))); var_Items->set_CellValue(TNoParam(),TVariant(s),TVariant("S 1.2")); var_Items->set_CellHAlignment(TNoParam(),TVariant(s),Exgridlib_tlb::AlignmentEnum::CenterAlignment); var_Items->set_CellBackColor(TNoParam(),TVariant(s),0x1000000); var_Items->set_CellWidth(TNoParam(),TVariant(s),84); s = TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("S 2.1"))),TVariant(0))); var_Items->set_CellValue(TNoParam(),TVariant(s),TVariant("S 2.2")); var_Items->set_CellHAlignment(TNoParam(),TVariant(s),Exgridlib_tlb::AlignmentEnum::CenterAlignment); var_Items->set_CellWidth(TNoParam(),TVariant(s),84); s = TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("S 3.1"))),TVariant(0))); var_Items->set_CellValue(TNoParam(),TVariant(s),TVariant("S 3.2")); var_Items->set_CellHAlignment(TNoParam(),TVariant(s),Exgridlib_tlb::AlignmentEnum::CenterAlignment); var_Items->set_CellBackColor(TNoParam(),TVariant(s),0x1000000); var_Items->set_CellWidth(TNoParam(),TVariant(s),84); |
552 |
How can I sort the value gets listed in the drop down filter window
Grid1->LinesAtRoot = Exgridlib_tlb::LinesAtRootEnum::exLinesAtRoot; Grid1->MarkSearchColumn = false; Grid1->Description[Exgridlib_tlb::DescriptionTypeEnum::exFilterBarAll] = L""; Grid1->Description[Exgridlib_tlb::DescriptionTypeEnum::exFilterBarBlanks] = L""; Grid1->Description[Exgridlib_tlb::DescriptionTypeEnum::exFilterBarNonBlanks] = L""; Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"P1"); var_Column->DisplayFilterButton = true; var_Column->DisplayFilterPattern = false; var_Column->FilterList = Exgridlib_tlb::FilterListEnum::exSortItemsDesc; Exgridlib_tlb::IColumnPtr var_Column1 = Grid1->Columns->Add(L"P2"); var_Column1->DisplayFilterButton = true; var_Column1->DisplayFilterPattern = false; var_Column1->FilterList = Exgridlib_tlb::FilterListEnum::exSortItemsAsc; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h = var_Items->AddItem(TVariant("Z3")); var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("C")); var_Items->set_CellValue(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Z1"))),TVariant(1),TVariant("B")); var_Items->set_CellValue(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Z2"))),TVariant(1),TVariant("A")); var_Items->set_ExpandItem(h,true); |
551 |
How can I align the text/caption on the scroll bar
Grid1->ScrollPartCaption[Exgridlib_tlb::ScrollBarEnum::exHScroll,Exgridlib_tlb::ScrollPartEnum::exLowerBackPart] = L"left"; Grid1->ScrollPartCaptionAlignment[Exgridlib_tlb::ScrollBarEnum::exHScroll,Exgridlib_tlb::ScrollPartEnum::exLowerBackPart] = Exgridlib_tlb::AlignmentEnum::LeftAlignment; Grid1->ScrollPartCaption[Exgridlib_tlb::ScrollBarEnum::exHScroll,Exgridlib_tlb::ScrollPartEnum::exUpperBackPart] = L"right"; Grid1->ScrollPartCaptionAlignment[Exgridlib_tlb::ScrollBarEnum::exHScroll,Exgridlib_tlb::ScrollPartEnum::exUpperBackPart] = Exgridlib_tlb::AlignmentEnum::RightAlignment; Grid1->ColumnAutoResize = false; Grid1->Columns->Add(L"1"); Grid1->Columns->Add(L"2"); Grid1->Columns->Add(L"3"); Grid1->Columns->Add(L"4"); Grid1->Columns->Add(L"5"); Grid1->Columns->Add(L"6"); |
550 |
How do I select the next row/item
Grid1->Columns->Add(L"Column"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant("Item 1")); var_Items->AddItem(TVariant("Item 2")); var_Items->AddItem(TVariant("Item 3")); var_Items->set_SelectItem(var_Items->get_NextVisibleItem(var_Items->FocusItem),true); |
549 |
How do I enable resizing ( changing the height ) the items at runtime
Grid1->ItemsAllowSizing = Exgridlib_tlb::ItemsAllowSizingEnum::exResizeItem; Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exHLines; Grid1->ScrollBySingleLine = true; Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant("Item 1")); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_ItemHeight(var_Items->AddItem(TVariant("Item 2")),48); Grid1->Items->AddItem(TVariant("Item 3")); Grid1->Items->AddItem(TVariant("Item 4")); |
548 |
How do I enable resizing all the items at runtime
Grid1->ItemsAllowSizing = Exgridlib_tlb::ItemsAllowSizingEnum::exResizeAllItems; Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exHLines; Grid1->Columns->Add(L"Column"); Grid1->Items->AddItem(TVariant("Item 1")); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_ItemHeight(var_Items->AddItem(TVariant("Item 2")),48); Grid1->Items->AddItem(TVariant("Item 3")); |
547 |
How can I remove the filter
|
546 |
How can I vertically display the column's caption, in the header
Grid1->Columns->Add(L"A")->HeaderVertical = true; Grid1->Columns->Add(L"B")->HeaderVertical = true; Grid1->Columns->Add(L"H")->HeaderVertical = false; |
545 |
When I have a column in a grid that is set to having a checkbox, and the grid's singlesel is set to false, I am able to toggle the checkboxes for a while, but lose this functionality eventually. Do you have a tip
Grid1->Columns->Add(L"Check")->set_Def(Exgridlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true)); Grid1->SingleSel = false; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(true)); var_Items->AddItem(TVariant(false)); var_Items->AddItem(TVariant(false)); |
544 |
How do I arrange, format or layout the item on multiple levels or lines, as a subform
Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exRowLines; Grid1->HeaderVisible = false; Grid1->ItemsAllowSizing = Exgridlib_tlb::ItemsAllowSizingEnum::exResizeItem; Grid1->MarkSearchColumn = false; Grid1->ScrollBySingleLine = true; Grid1->BackColor = RGB(255,255,255); Grid1->SelBackColor = RGB(255,255,255); Grid1->SelForeColor = 0x80000012; Exgridlib_tlb::IColumnsPtr var_Columns = Grid1->Columns; var_Columns->Add(L""); Exgridlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Column"); var_Column->Visible = false; var_Column->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType; Exgridlib_tlb::IColumnPtr var_Column1 = var_Columns->Add(L"Column"); var_Column1->Visible = false; var_Column1->Editor->EditType = Exgridlib_tlb::EditTypeEnum::DropDownType; Exgridlib_tlb::IColumnPtr var_Column2 = var_Columns->Add(L"Column"); var_Column2->Visible = false; var_Column2->Editor->EditType = Exgridlib_tlb::EditTypeEnum::DropDownType; Exgridlib_tlb::IColumnPtr var_Column3 = var_Columns->Add(L"Column"); var_Column3->Visible = false; Exgridlib_tlb::IEditorPtr var_Editor = var_Column3->Editor; var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::CheckValueType; var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exCheckValue2,TVariant(1)); Exgridlib_tlb::IColumnPtr var_Column4 = var_Columns->Add(L"Column"); var_Column4->Visible = false; var_Column4->Editor->EditType = Exgridlib_tlb::EditTypeEnum::DateType; var_Columns->Add(L"Column")->Visible = false; Exgridlib_tlb::IColumnPtr var_Column5 = var_Columns->Add(L"Column"); var_Column5->Visible = false; var_Column5->Editor->EditType = Exgridlib_tlb::EditTypeEnum::DropDownType; Exgridlib_tlb::IColumnPtr var_Column6 = var_Columns->Add(L"Column"); var_Column6->Visible = false; var_Column6->set_Def(Exgridlib_tlb::DefColumnEnum::exCellSingleLine,TVariant(0)); var_Editor = var_Column6->Editor; var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::MemoType; var_Editor->ButtonWidth = 17; var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exDownArrow,TVariant(0)); var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exEndKey,TVariant(0)); var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exHomeKey,TVariant(0)); var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exLeftArrow,TVariant(0)); var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exMemoAutoSize,TVariant(0)); var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exMemoVScrollBar,TVariant(-1)); var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exPageDownKey,TVariant(0)); var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exPageUpKey,TVariant(0)); var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exRightArrow,TVariant(0)); var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exUpArrow,TVariant(0)); var_Column6->Visible = false; var_Columns->Add(L"Column")->Visible = false; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h0 = var_Items->AddItem(TVariant("")); var_Items->set_CellValue(TVariant(h0),TVariant(9),TVariant("Dismiss")); var_Items->set_CellFormatLevel(TVariant(h0),TVariant(0),TVariant(String("12;\" \"[b=0][bg=RGB(248,248,248)]/(\" \"[b=0][bg=RGB(248,248,248)]:12,(1;\" \"[b=0]/(\" \"[b=0]:1,(25;(5;\" \"[b=0]/((\"Subjec") + "t:\"[b=0]:80,(1;\" \"[b=0][bg=RGB(0,0,0)]/(\" \"[b=0][bg=RGB(0,0,0)]:1,(\" \"[b=0][bg=RGB(255,0,0)]:5,1[b=0]),\" \"[b=0][bg=RGB(" + "0,0,0)]:1)/1;\" \"[b=0][bg=RGB(0,0,0)]))/1;\" \"[b=0]))/20;(\"Location:\"[b=0]:80,(1;\" \"[b=0][bg=RGB(0,0,0)]/(\" \"[b=0][bg=RG" + "B(0,0,0)]:1,2[b=0],\" \"[b=0][bg=RGB(0,0,0)]:1)/1;\" \"[b=0][bg=RGB(0,0,0)]),((\" \"[b=0]:10,\"Label:\"[b=0])):50,(1;\" \"[b=0][" + "bg=RGB(0,0,0)]/(\" \"[b=0][bg=RGB(0,0,0)]:1,3[b=0],\" \"[b=0][bg=RGB(0,0,0)]:1)/1;\" \"[b=0][bg=RGB(0,0,0)]))/50;(10;\" \"[b=0]/" + "(1;\" \"[b=0][bg=RGB(255,0,0)]/(\"Recurrence:\"[b=0]:80,\"Occurs every day effective 20/04/2007 from 01:00 to 01:01.\"[b=0])/1;\" + "" \"[b=0][bg=RGB(255,0,0)])/10;\" \"[b=0])/23;(4[b=0]:20,\"Reminder:\"[b=0]:60,(1;\" \"[b=0][bg=RGB(0,0,0)]/(\" \"[b=0][bg=RGB(0" + ",0,0)]:1,5[b=0],\" \"[b=0][bg=RGB(0,0,0)]:1)/1;\" \"[b=0][bg=RGB(0,0,0)]),((\" \"[b=0]:5,6[b=0])):30,((\" \"[b=0]:10,\"Show time" + " as:\"[b=0])):90,(1;\" \"[b=0][bg=RGB(0,0,0)]/(\" \"[b=0][bg=RGB(0,0,0)]:1,7[b=0],\" \"[b=0][bg=RGB(0,0,0)]:1)/1;\" \"[b=0][bg=R" + "GB(0,0,0)]))/(12;\" \"[b=0]/(1;\" \"[b=0][bg=RGB(0,0,0)]/(\" \"[b=0][bg=RGB(0,0,0)]:1,8[b=0],\" \"[b=0][bg=RGB(0,0,0)]:1)/1;\" \" + ""[b=0][bg=RGB(0,0,0)]))/35;(5;\" \"[b=0]/(\" \"[b=0],\" \"[b=0],((\" \"[b=0]:40,9[b=0])))/5;\" \"[b=0])),\" \"[b=0]:1)/1;\" \"[b" + "=0]),\" \"[b=0][bg=RGB(248,248,248)]:12)/12;\" \"[b=0][bg=RGB(248,248,248)]")); var_Items->set_CellHasCheckBox(TVariant(h0),TVariant(4),true); var_Items->set_CellHasButton(TVariant(h0),TVariant(9),true); var_Items->set_CellHAlignment(TVariant(h0),TVariant(9),Exgridlib_tlb::AlignmentEnum::CenterAlignment); var_Items->set_CellVAlignment(TVariant(h0),TVariant(8),Exgridlib_tlb::VAlignmentEnum::exTop); var_Items->set_CellForeColor(TVariant(h0),TVariant(8),RGB(0,0,0)); var_Items->set_CellHasButton(TVariant(h0),TVariant(6),true); var_Items->set_CellValue(TVariant(h0),TVariant(6),TVariant("<img>1</img>")); var_Items->set_CellValueFormat(TVariant(h0),TVariant(6),Exgridlib_tlb::ValueFormatEnum::exHTML); var_Items->set_CellHAlignment(TVariant(h0),TVariant(6),Exgridlib_tlb::AlignmentEnum::CenterAlignment); var_Items->set_ItemHeight(h0,296); |
543 |
How do I arrange, format or layout the item on multiple levels or lines
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->MarkSearchColumn = false; Grid1->DefaultItemHeight = 34; Grid1->Columns->Add(L"1")->Visible = false; Grid1->Columns->Add(L"2")->Visible = false; Grid1->Columns->Add(L"3")->Visible = false; Grid1->Columns->Add(L"4")->Visible = false; Grid1->Columns->Add(L"5")->Visible = false; Grid1->Columns->Add(L"General"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->DefaultItem = var_Items->AddItem(TVariant(0)); var_Items->set_CellValue(TVariant(0),TVariant(1),TVariant(1)); var_Items->set_CellValue(TVariant(0),TVariant(2),TVariant(2)); var_Items->set_CellValue(TVariant(0),TVariant(3),TVariant(3)); var_Items->set_CellValue(TVariant(0),TVariant(4),TVariant(4)); var_Items->set_CellFormatLevel(TVariant(var_Items->DefaultItem),TVariant(5),L"0,1,2/3,4"); var_Items->DefaultItem = var_Items->AddItem(TVariant(5)); var_Items->set_CellValue(TVariant(0),TVariant(1),TVariant(6)); var_Items->set_CellValue(TVariant(0),TVariant(2),TVariant(7)); var_Items->set_CellValue(TVariant(0),TVariant(3),TVariant(8)); var_Items->set_CellValue(TVariant(0),TVariant(4),TVariant(9)); var_Items->set_CellFormatLevel(TVariant(var_Items->DefaultItem),TVariant(5),L"3,4/0,1,2"); |
542 |
How do I arrange, format or layout the column's header on multiple levels or lines
|
541 |
How do I arrange, format or layout the item on multiple levels or lines
Grid1->MarkSearchColumn = false; Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->DefaultItemHeight = 53; Grid1->Columns->Add(L"EmployeeID")->Visible = false; Grid1->Columns->Add(L"LastName")->Visible = false; Grid1->Columns->Add(L"FirstName")->Visible = false; Grid1->Columns->Add(L"Handler")->Visible = false; Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Title"); var_Column->Visible = false; var_Column->DisplayFilterButton = true; Exgridlib_tlb::IColumnPtr var_Column1 = Grid1->Columns->Add(L"TitleOfCourtesy"); var_Column1->Visible = false; var_Column1->DisplayFilterButton = true; Grid1->Columns->Add(L"BirthDate")->Visible = false; Grid1->Columns->Add(L"HideDate")->Visible = false; Grid1->Columns->Add(L"Address")->Visible = false; Grid1->Columns->Add(L"City")->Visible = false; Grid1->Columns->Add(L"Region")->Visible = false; Grid1->Columns->Add(L"PostCode")->Visible = false; Grid1->Columns->Add(L"Country")->Visible = false; Grid1->Columns->Add(L"HomePage")->Visible = false; Grid1->Columns->Add(L"Extension")->Visible = false; Exgridlib_tlb::IColumnPtr var_Column2 = Grid1->Columns->Add(L"Photo"); var_Column2->Visible = false; Exgridlib_tlb::IEditorPtr var_Editor = var_Column2->Editor; var_Editor->DropDownVisible = false; var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::PictureType; var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exShowPictureType,TVariant(0)); Grid1->Columns->Add(L"Notes")->Visible = false; Grid1->Columns->Add(L"ReportsTo")->Visible = false; Exgridlib_tlb::IColumnPtr var_Column3 = Grid1->Columns->Add(L"Personal Info"); var_Column3->set_Def(Exgridlib_tlb::DefColumnEnum::exCellFormatLevel,TVariant("15:54,(2/1/4)")); var_Column3->FormatLevel = L"18;18/(15:54,(2/1/4))"; var_Column3->Width = 196; Exgridlib_tlb::IColumnPtr var_Column4 = Grid1->Columns->Add(L"General Info"); var_Column4->set_Def(Exgridlib_tlb::DefColumnEnum::exCellFormatLevel,TVariant("(8/18;5):128,((((13/11/12),(6/7/10)),16))")); var_Column4->FormatLevel = L"18;19/((8/18;5):128,((((13/11/12),(6/7/10)),16)))"; var_Column4->Width = 512; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h0 = var_Items->AddItem(TVariant(1)); var_Items->set_CellValue(TVariant(h0),TVariant(1),TVariant("Davolio")); var_Items->set_CellValue(TVariant(h0),TVariant(2),TVariant("Nancy")); var_Items->set_CellValue(TVariant(h0),TVariant(3),TVariant(0)); var_Items->set_CellValue(TVariant(h0),TVariant(4),TVariant("Sales Representative")); var_Items->set_CellValue(TVariant(h0),TVariant(5),TVariant("Ms.")); var_Items->set_CellValue(TVariant(h0),TVariant(6),TVariant("12/8/1948")); var_Items->set_CellValue(TVariant(h0),TVariant(7),TVariant("5/1/1992")); var_Items->set_CellValue(TVariant(h0),TVariant(8),TVariant("507-20th Ave. \\r\\nE.Apt. 2A")); var_Items->set_CellValue(TVariant(h0),TVariant(9),TVariant("Seattle")); var_Items->set_CellValue(TVariant(h0),TVariant(10),TVariant("WA")); var_Items->set_CellValue(TVariant(h0),TVariant(11),TVariant("98122")); var_Items->set_CellValue(TVariant(h0),TVariant(12),TVariant("USA")); var_Items->set_CellValue(TVariant(h0),TVariant(13),TVariant("(206) 555-9857")); var_Items->set_CellValue(TVariant(h0),TVariant(14),TVariant("5467")); var_Items->set_CellValue(TVariant(h0),TVariant(15),Grid1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\sample.bmp`)")); var_Items->set_CellValue(TVariant(h0),TVariant(16),TVariant(String("Education includes a BA in psychology from Colorado State University in 1970. She also completed \"The Art of the Cold Call.\"") + " Nancy is a member of ToastmastersInternational.")); var_Items->set_CellValue(TVariant(h0),TVariant(17),TVariant(2)); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items; var_Items1->set_CellFormatLevel(TVariant(var_Items1->FocusItem),TVariant("General Info"),L"15,10,4"); var_Items1->set_CellFormatLevel(TVariant(var_Items1->FocusItem),TVariant("Personal Info"),L"1/2"); |
540 |
How do I arrange, format or layout the data on multiple levels or lines
Grid1->MarkSearchColumn = false; Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->DefaultItemHeight = 53; Grid1->Columns->Add(L"EmployeeID")->Visible = false; Grid1->Columns->Add(L"LastName")->Visible = false; Grid1->Columns->Add(L"FirstName")->Visible = false; Grid1->Columns->Add(L"Handler")->Visible = false; Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Title"); var_Column->Visible = false; var_Column->DisplayFilterButton = true; Exgridlib_tlb::IColumnPtr var_Column1 = Grid1->Columns->Add(L"TitleOfCourtesy"); var_Column1->Visible = false; var_Column1->DisplayFilterButton = true; Grid1->Columns->Add(L"BirthDate")->Visible = false; Grid1->Columns->Add(L"HideDate")->Visible = false; Grid1->Columns->Add(L"Address")->Visible = false; Grid1->Columns->Add(L"City")->Visible = false; Grid1->Columns->Add(L"Region")->Visible = false; Grid1->Columns->Add(L"PostCode")->Visible = false; Grid1->Columns->Add(L"Country")->Visible = false; Grid1->Columns->Add(L"HomePage")->Visible = false; Grid1->Columns->Add(L"Extension")->Visible = false; Exgridlib_tlb::IColumnPtr var_Column2 = Grid1->Columns->Add(L"Photo"); var_Column2->Visible = false; Exgridlib_tlb::IEditorPtr var_Editor = var_Column2->Editor; var_Editor->DropDownVisible = false; var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::PictureType; var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exShowPictureType,TVariant(0)); Grid1->Columns->Add(L"Notes")->Visible = false; Grid1->Columns->Add(L"ReportsTo")->Visible = false; Exgridlib_tlb::IColumnPtr var_Column3 = Grid1->Columns->Add(L"Personal Info"); var_Column3->set_Def(Exgridlib_tlb::DefColumnEnum::exCellFormatLevel,TVariant("15:54,(2/1/4)")); var_Column3->FormatLevel = L"18;18/(15:54,(2/1/4))"; var_Column3->Width = 196; Exgridlib_tlb::IColumnPtr var_Column4 = Grid1->Columns->Add(L"General Info"); var_Column4->set_Def(Exgridlib_tlb::DefColumnEnum::exCellFormatLevel,TVariant("(8/18;5):128,((((13/11/12),(6/7/10)),16))")); var_Column4->FormatLevel = L"18;19/((8/18;5):128,((((13/11/12),(6/7/10)),16)))"; var_Column4->Width = 512; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; long h0 = var_Items->AddItem(TVariant(1)); var_Items->set_CellValue(TVariant(h0),TVariant(1),TVariant("Davolio")); var_Items->set_CellValue(TVariant(h0),TVariant(2),TVariant("Nancy")); var_Items->set_CellValue(TVariant(h0),TVariant(3),TVariant(0)); var_Items->set_CellValue(TVariant(h0),TVariant(4),TVariant("Sales Representative")); var_Items->set_CellValue(TVariant(h0),TVariant(5),TVariant("Ms.")); var_Items->set_CellValue(TVariant(h0),TVariant(6),TVariant("12/8/1948")); var_Items->set_CellValue(TVariant(h0),TVariant(7),TVariant("5/1/1992")); var_Items->set_CellValue(TVariant(h0),TVariant(8),TVariant("507-20th Ave. \\r\\nE.Apt. 2A")); var_Items->set_CellValue(TVariant(h0),TVariant(9),TVariant("Seattle")); var_Items->set_CellValue(TVariant(h0),TVariant(10),TVariant("WA")); var_Items->set_CellValue(TVariant(h0),TVariant(11),TVariant("98122")); var_Items->set_CellValue(TVariant(h0),TVariant(12),TVariant("USA")); var_Items->set_CellValue(TVariant(h0),TVariant(13),TVariant("(206) 555-9857")); var_Items->set_CellValue(TVariant(h0),TVariant(14),TVariant("5467")); var_Items->set_CellValue(TVariant(h0),TVariant(15),Grid1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\sample.bmp`)")); var_Items->set_CellValue(TVariant(h0),TVariant(16),TVariant(String("Education includes a BA in psychology from Colorado State University in 1970. She also completed \"The Art of the Cold Call.\"") + " Nancy is a member of ToastmastersInternational.")); var_Items->set_CellValue(TVariant(h0),TVariant(17),TVariant(2)); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); Grid1->PutItems(Grid1->GetItems(TVariant(0)),TNoParam()); |
539 |
How do I arrange, format or layout the column's data on multiple levels or lines
Grid1->MarkSearchColumn = false; Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->DefaultItemHeight = 68; Grid1->Columns->Add(L"EmployeeID")->Visible = false; Grid1->Columns->Add(L"LastName")->Visible = false; Grid1->Columns->Add(L"FirstName")->Visible = false; Grid1->Columns->Add(L"Handler")->Visible = false; Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Title"); var_Column->Visible = false; var_Column->DisplayFilterButton = true; Exgridlib_tlb::IColumnPtr var_Column1 = Grid1->Columns->Add(L"TitleOfCourtesy"); var_Column1->Visible = false; var_Column1->DisplayFilterButton = true; Grid1->Columns->Add(L"BirthDate")->Visible = false; Grid1->Columns->Add(L"HideDate")->Visible = false; Grid1->Columns->Add(L"Address")->Visible = false; Grid1->Columns->Add(L"City")->Visible = false; Grid1->Columns->Add(L"Region")->Visible = false; Grid1->Columns->Add(L"PostCode")->Visible = false; Grid1->Columns->Add(L"Country")->Visible = false; Grid1->Columns->Add(L"HomePage")->Visible = false; Grid1->Columns->Add(L"Extension")->Visible = false; Grid1->Columns->Add(L"Photo")->Visible = false; Grid1->Columns->Add(L"Notes")->Visible = false; Grid1->Columns->Add(L"ReportsTo")->Visible = false; Exgridlib_tlb::IColumnPtr var_Column2 = Grid1->Columns->Add(L"Personal Info"); var_Column2->set_Def(Exgridlib_tlb::DefColumnEnum::exCellFormatLevel,TVariant("18;18/(15:54,(2/1/4))")); var_Column2->FormatLevel = L"18;18/(15:54,(2/1/4))"; var_Column2->Width = 196; Exgridlib_tlb::IColumnPtr var_Column3 = Grid1->Columns->Add(L"General Info"); var_Column3->set_Def(Exgridlib_tlb::DefColumnEnum::exCellFormatLevel,TVariant("18;19/((8/18;5):128,((((13/11/12),(6/7/10)),16)))")); var_Column3->FormatLevel = L"18;19/((8/18;5):128,((((13/11/12),(6/7/10)),16)))"; var_Column3->Width = 512; Grid1->Items->AddItem(TVariant("")); Grid1->Items->AddItem(TVariant("")); Grid1->Items->AddItem(TVariant("")); Grid1->Items->AddItem(TVariant("")); |
538 |
How do I arrange, format or layout the column's header on multiple levels or lines
Grid1->Columns->Add(L"EmployeeID")->Visible = false; Grid1->Columns->Add(L"LastName")->Visible = false; Grid1->Columns->Add(L"FirstName")->Visible = false; Grid1->Columns->Add(L"Handler")->Visible = false; Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"Title"); var_Column->Visible = false; var_Column->DisplayFilterButton = true; Exgridlib_tlb::IColumnPtr var_Column1 = Grid1->Columns->Add(L"TitleOfCourtesy"); var_Column1->Visible = false; var_Column1->DisplayFilterButton = true; Grid1->Columns->Add(L"BirthDate")->Visible = false; Grid1->Columns->Add(L"HideDate")->Visible = false; Grid1->Columns->Add(L"Address")->Visible = false; Grid1->Columns->Add(L"City")->Visible = false; Grid1->Columns->Add(L"Region")->Visible = false; Grid1->Columns->Add(L"PostCode")->Visible = false; Grid1->Columns->Add(L"Country")->Visible = false; Grid1->Columns->Add(L"HomePage")->Visible = false; Grid1->Columns->Add(L"Extension")->Visible = false; Grid1->Columns->Add(L"Photo")->Visible = false; Grid1->Columns->Add(L"Notes")->Visible = false; Grid1->Columns->Add(L"ReportsTo")->Visible = false; Exgridlib_tlb::IColumnPtr var_Column2 = Grid1->Columns->Add(L"Personal Info"); var_Column2->FormatLevel = L"18;18/(15:54,(2/1/4))"; var_Column2->Width = 196; Exgridlib_tlb::IColumnPtr var_Column3 = Grid1->Columns->Add(L"General Info"); var_Column3->FormatLevel = L"18;19/((8/18;5):128,((((13/11/12),(6/7/10)),16)))"; var_Column3->Width = 512; |
537 |
How can I select a cells like in excel
Grid1->MarkSearchColumn = false; Grid1->SingleSel = false; Grid1->FullRowSelect = Exgridlib_tlb::CellSelectEnum::exRectSel; Grid1->Columns->Add(L"Column1")->Selected = true; Grid1->Columns->Add(L"Column2"); Grid1->Columns->Add(L"Column3")->Selected = true; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->DefaultItem = var_Items->AddItem(TVariant(0)); var_Items->set_CellValue(TVariant(0),TVariant(1),TVariant(1)); var_Items->set_CellValue(TVariant(0),TVariant(2),TVariant(2)); var_Items->DefaultItem = var_Items->AddItem(TVariant(3)); var_Items->set_CellValue(TVariant(0),TVariant(1),TVariant(4)); var_Items->set_CellValue(TVariant(0),TVariant(2),TVariant(5)); var_Items->DefaultItem = var_Items->AddItem(TVariant(6)); var_Items->set_CellValue(TVariant(0),TVariant(1),TVariant(7)); var_Items->set_CellValue(TVariant(0),TVariant(2),TVariant(8)); |
536 |
How can I select a multiple column
Grid1->MarkSearchColumn = false; Grid1->SingleSel = false; Grid1->FullRowSelect = Exgridlib_tlb::CellSelectEnum::exRectSel; Grid1->Columns->Add(L"Column1")->Selected = true; Grid1->Columns->Add(L"Column2"); Grid1->Columns->Add(L"Column3")->Selected = true; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->DefaultItem = var_Items->AddItem(TVariant(0)); var_Items->set_CellValue(TVariant(0),TVariant(1),TVariant(1)); var_Items->set_CellValue(TVariant(0),TVariant(2),TVariant(2)); var_Items->DefaultItem = var_Items->AddItem(TVariant(3)); var_Items->set_CellValue(TVariant(0),TVariant(1),TVariant(4)); var_Items->set_CellValue(TVariant(0),TVariant(2),TVariant(5)); var_Items->DefaultItem = var_Items->AddItem(TVariant(6)); var_Items->set_CellValue(TVariant(0),TVariant(1),TVariant(7)); var_Items->set_CellValue(TVariant(0),TVariant(2),TVariant(8)); Grid1->Items->SelectAll(); |
535 |
How can I select a column
Grid1->MarkSearchColumn = false; Grid1->SingleSel = false; Grid1->FullRowSelect = Exgridlib_tlb::CellSelectEnum::exRectSel; Grid1->Columns->Add(L"Column1")->Selected = true; Grid1->Columns->Add(L"Column2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("One"))),TVariant(1),TVariant("One")); Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items; var_Items1->set_CellValue(TVariant(var_Items1->AddItem(TVariant("Two"))),TVariant(1),TVariant("Two")); Grid1->Items->SelectAll(); |
534 |
How can I collapse all cards
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(64); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Expanded")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->CollapseAllCards(); |
533 |
How can I expand all cards
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(64); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Expanded")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->ExpandAllCards(); |
532 |
How can I expand or collapse a card
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(64); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Expanded")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
531 |
How can I format or arrange the data being displayed in the card
Grid1->HasButtons = Exgridlib_tlb::ExpandButtonEnum::exNoButtons; Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ItemsAllowSizing = Exgridlib_tlb::ItemsAllowSizingEnum::exResizeItem; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewTitleFormat] = TVariant("(\"Title:\",0),1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant(""); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewWidth] = TVariant(164); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(18); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
530 |
How can I format or arrange the data being displayed in the card
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ItemsAllowSizing = Exgridlib_tlb::ItemsAllowSizingEnum::exResizeItem; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("(\"ABC\",2)/(0,3,\"DEFGH\")/1/0/1/0/1/1,0[bg=RGB(230,230,230)][fg=RGB(255,0,0)"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewTitleFormat] = TVariant(""); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
529 |
How can I hide the tilte for the cards
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ItemsAllowSizing = Exgridlib_tlb::ItemsAllowSizingEnum::exResizeItem; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("0/1/0/1/0/1/0/1,0"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewTitleFormat] = TVariant(""); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
528 |
How can I display resizing lines between cards
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ItemsAllowSizing = Exgridlib_tlb::ItemsAllowSizingEnum::exResizeItem; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewVResizeLine] = TVariant(true); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHResizeLine] = TVariant(true); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewBorderWidth] = TVariant(8); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewBorderHeight] = TVariant(8); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
527 |
How can edit the text in the card
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(64); Grid1->Columns->Add(L"Column 1")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType; Grid1->Columns->Add(L"Column 2")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
526 |
How can I change the height of the card
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(64); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
525 |
How can I display the cards from top to bottom
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewLeftToRight] = TVariant(false); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
524 |
How do I change the background color for a specified card
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); var_Items->set_ItemForeColor(var_Items->FocusItem,RGB(255,0,0)); |
523 |
How do I change the visual aspect for a specified card
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); var_Items->set_ItemBackColor(var_Items->FocusItem,0x1000000); |
522 |
How do I change the background color for a specified card
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); var_Items->set_ItemBackColor(var_Items->FocusItem,RGB(255,0,0)); |
521 |
Is there any way to specify the foreground color for the title of the cards
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewTitleForeColor] = TVariant(255); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
520 |
Is there any way to specify the foreground color for all cards, including its title
Grid1->ForeColor = RGB(255,0,0); Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
519 |
How can I change the visual appearance for all cards, including the title
Grid1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); Grid1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn")); Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewBackColor] = TVariant(16777216); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewTitleBackColor] = TVariant(33554432); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
518 |
Is there any way to specify the background color for all cards, including its title
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewBackColor] = TVariant(255); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewTitleBackColor] = TVariant(128); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
517 |
Is there any way to specify the background color for all cards
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewBackColor] = TVariant(255); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
516 |
How can I specify the distance between cards
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewBorderWidth] = TVariant(16); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewBorderHeight] = TVariant(16); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
515 |
How can I resize the cards at runtime
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ItemsAllowSizing = Exgridlib_tlb::ItemsAllowSizingEnum::exResizeItem; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewVResizeLine] = TVariant(true); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHResizeLine] = TVariant(true); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewBorderWidth] = TVariant(8); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewBorderHeight] = TVariant(8); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); var_Items->set_ExpandCard(var_Items->FocusItem,true); |
514 |
How can show the grid lines for my cards
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); |
513 |
How can I hide the +/- expanding / collapsing buttons in the cards
Grid1->ExpandOnDblClick = false; Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); |
512 |
How can I hide the +/- expanding / collapsing buttons in the cards
Grid1->HasButtons = Exgridlib_tlb::ExpandButtonEnum::exNoButtons; Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); |
511 |
Is there any way to to specify the number of cards being displayed from letf to right
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewColumns] = TVariant(3); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); |
510 |
Is there any way to to specify the width of the cards, so they fit the control's client area
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewWidth] = TVariant(0); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewColumns] = TVariant(2); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); |
509 |
Is there any way to to specify the width of the cards, so they fit the control's client area
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewWidth] = TVariant(0); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); |
508 |
Is there any way to to specify the width of the cards
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewWidth] = TVariant(64); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); |
507 |
Is there any way to indent the control's data relative to the borders or the frame of the control
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->HeaderVisible = false; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exBorderWidth] = TVariant(8); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exBorderHeight] = TVariant(8); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); |
506 |
Is there any way to indent the control's data relative to the borders or the frame of the control
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exTableView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exTableView,Exgridlib_tlb::ViewModeOptionEnum::exBorderWidth] = TVariant(8); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exTableView,Exgridlib_tlb::ViewModeOptionEnum::exBorderHeight] = TVariant(8); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Item 1"))),TVariant(1),TVariant("Item 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Item 2"))),TVariant(1),TVariant("Item 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Item 3"))),TVariant(1),TVariant("Item 1.3")); |
505 |
How can I display my rows or items as a table
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exTableView; Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Item 1"))),TVariant(1),TVariant("Item 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Item 2"))),TVariant(1),TVariant("Item 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Item 3"))),TVariant(1),TVariant("Item 1.3")); |
504 |
How can I display my rows as cards
Grid1->DrawGridLines = Exgridlib_tlb::GridLinesEnum::exAllLines; Grid1->ViewMode = Exgridlib_tlb::ViewModeEnum::exCardView; Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewFormat] = TVariant("1"); Grid1->ViewModeOption[Exgridlib_tlb::ViewModeEnum::exCardView,Exgridlib_tlb::ViewModeOptionEnum::exCardViewHeight] = TVariant(36); Grid1->Columns->Add(L"Column 1"); Grid1->Columns->Add(L"Column 2"); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 1"))),TVariant(1),TVariant("Card 1.1")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 2"))),TVariant(1),TVariant("Card 1.2")); var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant("Card 3"))),TVariant(1),TVariant("Card 1.3")); |
503 |
How can I avoid focusing a new cell, when user presses an arrow, page, home or end key, while the editor is opened
Grid1->DefaultEditorOption[Exgridlib_tlb::EditorOptionEnum::exLeftArrow] = TVariant(0); Grid1->DefaultEditorOption[Exgridlib_tlb::EditorOptionEnum::exRightArrow] = TVariant(0); Grid1->DefaultEditorOption[Exgridlib_tlb::EditorOptionEnum::exUpArrow] = TVariant(0); Grid1->DefaultEditorOption[Exgridlib_tlb::EditorOptionEnum::exDownArrow] = TVariant(0); Grid1->DefaultEditorOption[Exgridlib_tlb::EditorOptionEnum::exHomeKey] = TVariant(0); Grid1->DefaultEditorOption[Exgridlib_tlb::EditorOptionEnum::exEndKey] = TVariant(0); Grid1->DefaultEditorOption[Exgridlib_tlb::EditorOptionEnum::exPageUpKey] = TVariant(0); Grid1->DefaultEditorOption[Exgridlib_tlb::EditorOptionEnum::exPageDownKey] = TVariant(0); Grid1->Columns->Add(L"Edit")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType; Grid1->Columns->Add(L"Edit")->Editor->EditType = Exgridlib_tlb::EditTypeEnum::EditType; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant(0))),TVariant(1),TVariant(1)); Exgridlib_tlb::IItemsPtr var_Items1 = Grid1->Items; var_Items1->set_CellValue(TVariant(var_Items1->AddItem(TVariant(2))),TVariant(1),TVariant(3)); |
502 |
How can I expand predefined items in a drop down list editor as I type
Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); Exgridlib_tlb::IColumnPtr var_Column = Grid1->Columns->Add(L"DropDown"); var_Column->set_Def(Exgridlib_tlb::DefColumnEnum::exCellValueFormat,TVariant(1)); Exgridlib_tlb::IEditorPtr var_Editor = var_Column->Editor; var_Editor->set_Option(Exgridlib_tlb::EditorOptionEnum::exExpandOnSearch,TVariant(true)); var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::DropDownListType; var_Editor->DropDownAutoWidth = Exgridlib_tlb::DropDownWidthType::exDropDownEditorWidth; var_Editor->AddItem(1,L"<b>CObject</b> class",TVariant(1)); var_Editor->InsertItem(2,L"<b>CCmdTarget</b> class",TVariant(2),TVariant(1)); var_Editor->InsertItem(3,L"<b>CWnd</b> class",TVariant(3),TVariant(2)); var_Editor->InsertItem(6,L"<bgcolor=10A0E0><fgcolor=F0F0F0>S y n c</fgcolor>",TVariant(1),TVariant(1)); var_Editor->AddItem(4,L"Exceptions",TVariant(1)); var_Editor->InsertItem(7,L"<b>System</b> Exceptions",TVariant(2),TVariant(4)); var_Editor->AddItem(5,L"File Services",TVariant(2)); Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(1)); var_Items->AddItem(TVariant(2)); |
501 |
How can I add an extra button to a date picker editor
Grid1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); Grid1->DefaultItemHeight = 20; Exgridlib_tlb::IEditorPtr var_Editor = Grid1->Columns->Add(L"Date")->Editor; var_Editor->EditType = Exgridlib_tlb::EditTypeEnum::DateType; var_Editor->AddButton(TVariant("B1"),TVariant(2),TVariant(1),TVariant("This is a bit of text that's shown when the cursor hovers the button B1"),TNoParam(),TNoParam()); var_Editor->ButtonWidth = 20; Exgridlib_tlb::IItemsPtr var_Items = Grid1->Items; var_Items->AddItem(TVariant(0)); var_Items->AddItem(TVariant(1)); |